
#include <stdio.h>

#include "map.h"
#include "shapefile.h"

int main(int argc, char *argv[])
{
	geopoint_map_t map;
	
	/* set the map dimensions
     */
    map.width = 800;
    map.height = 600;
	
	geopoint_map_init (&map);
	
	/*geopoint_shapefile_t sf;
	geopoint_shapefile_init (&sf);
	
	if (geopoint_shapefile_open (&sf, "data/boundaries") < 0) {
		printf ("unable to open shapefile\n");
	}*/
	
	/* save the map as an png
	 */
	if (geopoint_map_save_as_png (&map, "test.png") < 0) {
        fprintf (stderr, "unable to write png file.\n");
	}
	
	return 0;
}
